package com.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * Author by admin, Email xx@xx.com, Date on 2019/8/5.
 * PS: Not easy to write code, please indicate.
 */

@Data
public class Question {
        @TableId(value = "id" ,type= IdType.AUTO)
        private Long id;

        private String title;

        private String description;
        @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss")

        private Date gmtCreate;
        @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss")
        private Date gmtModified;

        private Long creator;

        private Integer commentCount;

        private Integer viewCount;

        private Integer thumbup;

        private Integer likeCount;
        private String tag;

}

